execute artisan command from route

80

Route::get('clear_cache', function () {

    \Artisan::call('cache:clear');

    dd("Cache is cleared");

});

Comments

Submit
0 Comments